import request from '@/utils/request'

export function getTestuserList() {
  return request({
    url: '/getSubjectInfoPage',
    method: 'post'
  })
}

export function getAutoSegmentData(data) {
  return request({
    url: '/getAutoSegmentData',
    method: 'post',
    async: false,
    data
  })
}

export function saveSegmentData(data) {
  return request({
    url: '/saveSegmentData',
    method: 'post',
    async: false,
    data
  })
}

export function saveTestUser(data){
  return request({
    url: '/addTestUser',
    method: 'post',
    async: false,
    data
  })
}

export function parsingExcelAddData (data) {
  return request({
    url: '/getErectionData',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data
  })
}
